/**
 * @Author: 焦质晔
 * @Date: 2019/6/20
 * @Last Modified by: mikey.zhaopeng
 * @Last Modified time: 2019-11-25 15:19:57
 */
import axios from '@/api/fetch';
import * as types from './types';
import SERVER from '@/api/server';

// 查询首页报表上半部分
export const queryHomePageTop = params => axios.get(`${SERVER.CYXDMS_CLUE}/clueReport/queryHomePageTop`, { params });

// 查询首页报表-跟进统计
export const queryFollowCount = params => axios.get(`${SERVER.CYXDMS_CLUE}/clueReport/queryFollowCount`, { params });

// 查询首页报表上半部分 订单部分
// export const qryAuditOrderNum = params => axios.get(`${SERVER.CYXDMS_RETAIL}/ordermanage/vinOrdersReport/qryAuditOrderNum`, { params });
// CMS 注释订单
export const qryAuditOrderNum = {};

// 查询首页报表-销售过程
export const querySalesProcess = params => axios.get(`${SERVER.CYXDMS_CLUE}/clueReport/querySalesProcess`, { params });

// 查询首页报表-销售过程(展厅经理)
export const querySalesProcessForHall = params => axios.get(`${SERVER.CYXDMS_CLUE}/clueReport/querySalesProcessForHall`, { params });
// CMS
//export const querySalesProcessForHall = {};

// 查询首页报表-销售过程(网销经理)
export const querySalesProcessForNet = params => axios.get(`${SERVER.CYXDMS_CLUE}/clueReport/querySalesProcessForNet`, { params });

// 首页线上报表--销售漏斗和走势订单/成交量--PC
// export const querySalesProcessOnline = params => axios.get(`${SERVER.CYXDMS_RETAIL}/ordermanage/vinOrdersReport/querySalesProcessOnline`, { params });
// CMS
export const querySalesProcessOnline = {};

// 首页展厅经理报表--销售漏斗和走势订单/成交量--PC
// export const querySalesProcessForHall2 = params => axios.get(`${SERVER.CYXDMS_RETAIL}/ordermanage/indexReports/querySalesProcessForHall`, { params });
// CMS
export const querySalesProcessForHall2 = {};
// 查询首页报表-团队绩效(展厅经理)
export const queryTeamAchievementForHall = params => axios.get(`${SERVER.CYXDMS_CLUE}/clueReport/queryTeamAchievementForHall`, { params });

// 查询首页报表-团队绩效(网销经理)
export const queryTeamAchievementForNet = params => axios.get(`${SERVER.CYXDMS_CLUE}/clueReport/queryTeamAchievementForNet`, { params });

// 展厅销售团队绩效
// export const qryHallSalesTeamReport = params => axios.get(`${SERVER.CYXDMS_RETAIL}/ordermanage/vinOrdersReport/qryHallSalesTeamReport`, { params });
export const qryHallSalesTeamReport = {};
